package com.example.projectone;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

public class SettingsActivity extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_settings);
	}

	private void goToUrl(String url){
		Uri uriUrl = Uri.parse(url);
		Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
		startActivity(launchBrowser);
	}
	
	public void openGM(View view){
		goToUrl("http://www.google.com");
	}
	public void openSV(View view){
		goToUrl("http://www.vegvesen.no");
	}
	public void openTF(View view){
		goToUrl("http://www.trafikkflyt.no");
	}

}
